import request from '@/utils/request'

export const register = (account, password, inviteCode) => {
  return request({
    url: '/auth/register',
    method: 'post',
    data: { account, password, inviteCode },
  })
}

export const login = (account, password) => {
  return request({
    url: '/auth/login',
    method: 'post',
    data: { account, password },
  })
}


